package com.example.share_doc.util;

import lombok.Data;

@Data
public class BusinessException extends RuntimeException{

    private Integer code;

    public BusinessException(ErrorEnum errorEnum) {
        super(errorEnum.getMessage());
        this.code = errorEnum.getCode();
    }
}
